<?php
include_once("include/include.php.inc");
html_header("Assign Ticket");

/*   $backlink=getenv('HTTP_REFERER');*/
echo "<div class='box'>\n"; 
echo " <div class='boxtop'><div></div></div>\n"; 
echo "  <div class='boxcontent'>\n"; 
   if (isset($_POST['as_sup'])) {
      $msup_no = $_POST['as_sup'];
      $mtic_no = $_POST['tic_no'];
//	  $msup_na = $_POST['as_sup_name'];
echo $msup_no."\n";
echo $mtic_no."\n";
//echo $msup_na."\n";
      $result = "UPDATE chd_tickets SET chd_tickets.tic_sup_name='$msup_no' WHERE chd_tickets.tic_no=$mtic_no";
      $action = mysql_query($result);
/*               if (FALSE === ($action = mysql_query($result)))
              {
                  print mysql_error()."<br />";
                  print $result;
              }*/

      print "<center>Support Personnel Assigned.</center>";
   }
   else
     print "<center>No Support No. Passed!!! Error!!!!.</center>";
echo "  </div>\n"; 
echo " <div class='boxbottom'><div></div></div>\n"; 
echo "</div>\n"; 
echo "\n";
   html_footer();
?>
